package com.quick.develop.form.convert;


import com.quick.develop.form.entity.GenDynamicFormEntity;
import com.quick.develop.form.vo.FormConfigVO;
import com.quick.develop.form.vo.GenDynamicFormVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 动态表单
 *
 * @author 阿沐 babamu@126.com
 * @since 1.0.0 2023-09-24
 */
@Mapper
public interface GenDynamicFormConvert {
    GenDynamicFormConvert INSTANCE = Mappers.getMapper(GenDynamicFormConvert.class);

    GenDynamicFormEntity convert(GenDynamicFormVO vo);

    FormConfigVO convert(GenDynamicFormEntity entity);

    GenDynamicFormEntity convert(FormConfigVO vo);

    GenDynamicFormVO convertVO(GenDynamicFormEntity entity);

    List<GenDynamicFormVO> convertList(List<GenDynamicFormEntity> list);

}